* (bug 4359) red [[user:#id]] links generated in [[special:Log]]
authorRob Church <robchurch@users.mediawiki.org>
Fri, 30 Dec 2005 23:16:42 +0000 (23:16 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 30 Dec 2005 23:16:42 +0000 (23:16 +0000)
RELEASE-NOTES
includes/LogPage.php

index 978eba5..b311c5d 100644 (file)
@@ -381,7 +381,7 @@ fully support the editing toolbar, but was found to be too confusing.
   * More reliable cache invalidation when templates outside the template
     namespace are changed
 * Removed $wgUseCategoryMagic option, categories are now enabled unconditionally
-
+* (bug 4359) red [[user:#id]] links generated in [[special:Log]]
 
 === Caveats ===
 
index 6d28ba3..d6df646 100644 (file)
@@ -178,7 +178,14 @@ class LogPage {
                                                $movedTo = Title::newFromText( $params[0] );
                                                $params[0] = $skin->makeLinkObj( $movedTo, $params[0] );
                                        } else {
-                                               $titleLink = $skin->makeLinkObj( $title );
+                                               # Bug 4359: red [[user:#id]] links generated in [[special:Log]]
+                                               # If it's an autoblock, don't do a link
+                                               if( $type == 'block' ) {
+                                                       $titletext = $title->getText();
+                                                       $titleLink = ( ( substr( $titletext, 0, 1 ) == '#' ) ? $titletext : $skin->makeLinkObj( $title ) );
+                                               } else {
+                                                       $titleLink = $skin->makeLinkObj( $title );
+                                               }
                                        }
                                } else {
                                        $titleLink = $title->getPrefixedText();